import Vue from 'vue'
import Router from 'vue-router'
import HomeContainer from '@/components/HomeContainer'
import MemberContainer from '@/components/MemberContainer'
import ShopCarContainer from '@/components/ShopCarContainer'
import SearchContainer from '@/components/SearchContainer'
import NewList from '@/components/NewList'
import newsinfo from '@/components/newsinfo'
import photosList from '@/photos/photosList'

Vue.use(Router)

export default new Router({
  linkActiveClass: 'mui-active',// 修改路由默认高亮类,默认类名为link-active-class
  routes: [
    { path: '/home', component: HomeContainer , alias : '/' },
    { path: '/member', component: MemberContainer },
    { path: '/shopcar', component: ShopCarContainer },
    { path: '/search', component: SearchContainer },
    { path: '/NewList', component: NewList },
    { path: '/home/newsinfo/:id', component: newsinfo },
    { path: '/home/photosList', component: photosList },
    { path: '*', redirect: '/' }
  ]
})
